package org.tigris.subversion.svnant.commands;

import java.io.File;
import org.tigris.subversion.svnant.SvnAntUtilities;
import org.tigris.subversion.svnclientadapter.ISVNClientAdapter;
import org.tigris.subversion.svnclientadapter.SVNClientException;

public class Propdel extends SvnCommand
{
  private static final String MSG_CANT_DELETE_PROPERTY = "Can't delete property %s";
  private File path = null;
  private String propName = null;
  private boolean recurse = false;

  public void execute()
  {
    try
    {
      getClient().propertyDel(this.path, this.propName, this.recurse);
    }
    catch (SVNClientException localSVNClientException)
    {
      throw ex(localSVNClientException, "Can't delete property %s", new Object[] { this.propName });
    }
  }

  protected void validateAttributes()
  {
    SvnAntUtilities.attrNotNull("path", this.path);
    SvnAntUtilities.attrNotEmpty("name", this.propName);
  }

  public void setPath(File paramFile)
  {
    this.path = paramFile;
  }

  public void setName(String paramString)
  {
    this.propName = paramString;
  }

  public void setRecurse(boolean paramBoolean)
  {
    this.recurse = paramBoolean;
  }
}

/* Location:           C:\Users\Administrator\Desktop\svnant.jar
 * Qualified Name:     org.tigris.subversion.svnant.commands.Propdel
 * JD-Core Version:    0.6.0
 */